Just-Right Consistency: reconciling availability and safety

نویسندگان

  • Marc Shapiro
  • Annette Bieniusa
  • Nuno M. Preguiça
  • Valter Balegas
  • Christopher Meiklejohn
چکیده

By the CAP Theorem, a distributed data storage system can ensure either Consistency under Partition (CP) or Availability under Partition (AP), but not both. This has led to a split between CP databases, in which updates are synchronous, and AP databases, where they are asynchronous. However, there is no inherent reason to treat all updates identically: simply, the system should be as available as possible, and synchronised just enough for the application to be correct. We offer a principled Just-Right Consistency approach to designing such applications, reconciling correctness with availability and performance, based on the following insights: (i) The Conflict-Free Replicated Data Type (CRDTs) data model supports asynchronous updates in an intuitive and principled way. (ii) Invariants involving joint or mutually-ordered updates are compatible with AP and can be guaranteed by Transactional Causal Consistency, the strongest consistency model that does not compromise availability. Regarding the remaining, “CAP-sensitive” invariants: (iii) For the common pattern of Bounded Counters, we provide encapsulated data type that is proven correct and is efficient; and (iv) in the general case, static analysis can identify when synchronisation is not necessary for correctness. Our Antidote cloud database system supports CRDTs, Transactional Causal Consistency and the Bounded Counter data type. Support tools help design applications by static analysis and proof of CAP-sensitive invariants. This system supports industrial-grade applications and has been tested experimentally with hundreds of servers across several geo-distributed data centres. Key-words: Distributed systems; distributed programming; consistency; availability; invariants; CAP Theorem La juste cohérence pour reconcilier disponibilité et sûreté Résumé : Le théorème CAP, un système de stockage réparti peut être, en cas de partition, soit cohérent (CP), soit disponible (AP), mais pas les deux. Il y a donc des bases de données CP, où les mises à jour sont synchrones, et les bases AP, où elles sont asynchrones. Cependant, il n’y a pas de raison essentielle de traiter toutes les mises à jour de façon identique. L’objectif est que le système reste aussi disponible que possible, mais suffisamment synchronisé pour que l’application reste correcte. Nous proposons un nouveau principe, la juste cohérence, afin de concevoir de telles applications, réconciliant la sûreté avec la disponibilité et l’efficacité, à partir des constatations suivantes : (i) Le modèle de données des CRDT (Conflict-Free Replicated Data Type) permet les mises à jour concurrentes de façon à la fois théoriquement fondée et intuitive. (ii) Les invariants basés sur la simultanéité ou l’ordre partiel des mises à jour sont compatibles avec AP, et peuvent être garanties par la Cohérence Causale Transactionelle (TCC), le modèle de cohérence le plus fort qui ne compromet pas la disponibilité. En ce qui concerne les autres invariants, dits CAP-sensibles : (iii) Le cas courant du compteur borné peut être géré par un type de données encapsulé, correct et cohérent, appelé Bounded Counter ; et (iv) dans le cas général, une analyse statique permet d’indentifier les cas où la sûreté ne nécessite pas de synchronisation. Notre base de données “nuage” Antidote offre les CRDT, le modèle TCC, et le type de données Bounded Counter. Des outils d’analyse statique et de preuve des invariants CAP-sensibles aident à la conception des applications. Notre système est mûr pour des applications d’échelle industrielle, et a été testé expérimentallement sur des centaines de serveurs répartis entre plusieurs centres de données géo-distribués. Mots-clés : Système distribué ; programmation répartie ; cohérence ; disponibilité ; invariants ; théorème CAP

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

ایمنی بیمار و نظام حقوق بشر

The greatest human wealth is health .Declarations on human rights enumerate with one voice the right on health for every human being as one of their fundamental rights. According to human rights and international law the states should respect to the right and provide appropriate therapeutic and hygienic facilities which help to the patient to retrieve their health. Patient safety is not l...

متن کامل

Reconciling gene expression data with known genome-scale regulatory network structures.

The availability of genome-scale gene expression data sets has initiated the development of methods that use this data to infer transcriptional regulatory networks. Alternatively, such regulatory network structures can be reconstructed based on annotated genome information, well-curated databases, and primary research literature. As a first step toward reconciling the two approaches, we examine...

متن کامل

Consistency Checking of Safety and Availability in Access Control

The safety and availability policies are very important in an access control system for ensuring security and success when performing a certain task. However, conflicts may arise between safety and availability policies due to their opposite focuses. In this paper, we address the problem of consistency checking for safety and availability policies, especially for the co-existence of static sepa...

متن کامل

Survey the safety culture and its relation with Just culture in the employees of the Car Manufacturing Industry

BACKGROUND AND POURPOSE: Due to the nature of the Car Manufacturing Industry and the risks and incidents in such industries, organizational commitment to safety and implementation of a safety culture is essential for working in these industries. The purpose of this study is to investigate the relationship between the safety culture and its possible association with just culture in the employees...

متن کامل

HIPAA's Individual Right of Access to Genomic Data: Reconciling Safety and Civil Rights.

In 2014, the United States granted individuals a right of access to their own laboratory test results, including genomic data. Many observers feel that this right is in tension with regulatory and bioethical standards designed to protect the safety of people who undergo genomic testing. This commentary attributes this tension to growing pains within an expanding federal regulatory program for g...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/1801.06340  شماره 

صفحات  -

تاریخ انتشار 2018